<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>店铺编号</title>
		<script src="js/mui.min.js"></script>
		<link href="css/mui.min.css" rel="stylesheet" />
		<style>
			.main {
				width: 80%;
				height: 300px;
				margin: 110px auto;
			}
			.mui-bar{
				background: #BBE0E3;
			}
			.mui-bar a{
				color: #fff;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		</header>
		<div class="main">
			<div style="text-align: center;">请输入店铺编号</div>
			<div style="margin-top: 20px;"><input type="text" value="" style="border: 1px solid #BBE0E3;text-align:center"></div>
			<div id="sure_btn" style="margin-top: 20px;text-align: center;"><button type="button" class="mui-btn" style="width: 86px;background-color: #BBE0E3;border: 1px solid #BBE0E3; ">确定</button></div>
		</div>
		<script type="text/javascript" charset="utf-8">
			mui.init();
			var sure_btn = document.getElementById("sure_btn");
			var input_value = document.getElementsByTagName("input");
			sure_btn.addEventListener("tap", function() {
				
				if(input_value[0].value=='') {
					mui.toast("店铺编码不能为空");
					return;
				}
				if(input_value[0].value!="123456") {
					mui.toast("店铺编码错误");
					return;
				}
				if(input_value[0].value=="123456") {
					mui.openWindow({
						/*url: "Success.html",
						id: "Success.html",*/
						url: "fail.html",
						id: "fial.html",
						show: { //控制打开页面的类型
							autoShow: true,//页面loaded事件发生后自动显示，默认为true 
							aniShow: 'zoom-fade-out', //页面显示动画，默认为”slide-in-right“；  页面出现的方式 左右上下
							duration: '500' //页面动画持续时间，Android平台默认100毫秒，iOS平台默认200毫秒； 
						},
					});
					return;
				}
				else {
					mui.openWindow({
//						url: "fail.html",
//						id: "fial.html",
					});
					return;
				}
			})
		</script>
	</body>

</html>